﻿using SqlSugar;
using System;

namespace WebApi.Model
{
    /// <summary>
    /// 运输备案表
    /// 说明：
    /// 1.此表由集控负责数据手动录入。主要字段为，货主名称、货物名、数量、单价、运输单位、运输单位账户总额、运输单位车号列表
    /// 2.其他的字段值需要根据业务计算生成
    /// </summary>
    [SugarTable("t_PutOnRecord")]
    public class PutOnRecord
    {
        private int? _iD = null;
        /// <summary>
        /// 主键id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int? ID
        {
            get
            {
                return _iD;
            }
            set
            {
                _iD = value;
            }
        }

        private String _yNumber = string.Empty;
        /// <summary>
        /// 运输备案号（对应运输备案证明左上角的【编号】）
        /// </summary>
        public String YNumber
        {
            get
            {
                return _yNumber;
            }
            set
            {
                _yNumber = value;
            }
        }

        private String _ownerOfCargoUnit = string.Empty;
        /// <summary>
        /// 货主单位（名称）
        /// </summary>
        public String OwnerOfCargoUnit
        {
            get
            {
                return _ownerOfCargoUnit;
            }
            set
            {
                _ownerOfCargoUnit = value;
            }
        }

        private String _goodsName = string.Empty;
        /// <summary>
        /// 货名（品名，目前硫酸固定）
        /// </summary>
        public String GoodsName
        {
            get
            {
                return _goodsName;
            }
            set
            {
                _goodsName = value;
            }
        }

        private int? _totalWeight = null;
        /// <summary>
        /// 总质量（单位：kg）
        /// </summary>
        public int? TotalWeight
        {
            get
            {
                return _totalWeight;
            }
            set
            {
                _totalWeight = value;
            }
        }

        private int? _remainingWeight = null;
        /// <summary>
        /// 剩余重量
        /// </summary>
        public int? RemainingWeight
        {
            get
            {
                return _remainingWeight;
            }
            set
            {
                _remainingWeight = value;
            }
        }

        private Decimal? _unitPrice = null;
        /// <summary>
        /// 单价（按每kg来算）
        /// </summary>
        public Decimal? UnitPrice
        {
            get
            {
                return _unitPrice;
            }
            set
            {
                _unitPrice = value;
            }
        }

        private String _transportUnit = string.Empty;
        /// <summary>
        /// 运输单位
        /// </summary>
        public String TransportUnit
        {
            get
            {
                return _transportUnit;
            }
            set
            {
                _transportUnit = value;
            }
        }

        private Decimal? _transportUnitTotalAmount = null;
        /// <summary>
        /// 运输单位账户总额（单位：元）
        /// </summary>
        public Decimal? TransportUnitTotalAmount
        {
            get
            {
                return _transportUnitTotalAmount;
            }
            set
            {
                _transportUnitTotalAmount = value;
            }
        }

        private Decimal? _transportUnitBalance = null;
        /// <summary>
        /// 运输单位账户余额
        /// </summary>
        public Decimal? TransportUnitBalance
        {
            get
            {
                return _transportUnitBalance;
            }
            set
            {
                _transportUnitBalance = value;
            }
        }

        private DateTime? _creatTime = null;
        /// <summary>
        /// 录入时间
        /// </summary>
        public DateTime? CreatTime
        {
            get
            {
                return _creatTime;
            }
            set
            {
                _creatTime = value;
            }
        }

        private DateTime? _startDate = null;
        /// <summary>
        /// 有效期限：开始日期yyyy-MM-dd
        /// </summary>
        public DateTime? StartDate
        {
            get
            {
                return _startDate;
            }
            set
            {
                _startDate = value;
            }
        }

        private DateTime? _endDate = null;
        /// <summary>
        /// 有效期限：结束日期yyyy-MM-dd
        /// </summary>
        public DateTime? EndDate
        {
            get
            {
                return _endDate;
            }
            set
            {
                _endDate = value;
            }
        }

        private String _plateList = string.Empty;
        /// <summary>
        /// 车牌号列表
        /// </summary>
        public String PlateList
        {
            get
            {
                return _plateList;
            }
            set
            {
                _plateList = value;
            }
        }

        private DateTime? _today = null;
        /// <summary>
        /// 拉货当天（用以与TodayAreadyPlateList配合使用判断此车当天是否拉过货）
        /// </summary>
        public DateTime? Today
        {
            get
            {
                return _today;
            }
            set
            {
                _today = value;
            }
        }

        private String _todayAreadyPlateList = string.Empty;
        /// <summary>
        /// 当天已拉货（今天已经拉过的车号）
        /// </summary>
        public String TodayAreadyPlateList
        {
            get
            {
                return _todayAreadyPlateList;
            }
            set
            {
                _todayAreadyPlateList = value;
            }
        }

        private String _guid = string.Empty;
        /// <summary>
        /// 唯一识别号
        /// </summary>
        public String Guid
        {
            get
            {
                return _guid;
            }
            set
            {
                _guid = value;
            }
        }

        private String _value1 = string.Empty;
        /// <summary>
        /// 备用字段1
        /// </summary>
        public String Value1
        {
            get
            {
                return _value1;
            }
            set
            {
                _value1 = value;
            }
        }

        private String _value2 = string.Empty;
        /// <summary>
        /// 备用字段2
        /// </summary>
        public String Value2
        {
            get
            {
                return _value2;
            }
            set
            {
                _value2 = value;
            }
        }

        private String _value3 = string.Empty;
        /// <summary>
        /// 备用字段3
        /// </summary>
        public String Value3
        {
            get
            {
                return _value3;
            }
            set
            {
                _value3 = value;
            }
        }

        private String _value4 = string.Empty;
        /// <summary>
        /// 备用字段4
        /// </summary>
        public String Value4
        {
            get
            {
                return _value4;
            }
            set
            {
                _value4 = value;
            }
        }

        private String _value5 = string.Empty;
        /// <summary>
        /// 备用字段5
        /// </summary>
        public String Value5
        {
            get
            {
                return _value5;
            }
            set
            {
                _value5 = value;
            }
        }

        private String _value6 = string.Empty;
        /// <summary>
        /// 备用字段6
        /// </summary>
        public String Value6
        {
            get
            {
                return _value6;
            }
            set
            {
                _value6 = value;
            }
        }

        private String _value7 = string.Empty;
        /// <summary>
        /// 备用字段7
        /// </summary>
        public String Value7
        {
            get
            {
                return _value7;
            }
            set
            {
                _value7 = value;
            }
        }

        private String _value8 = string.Empty;
        /// <summary>
        /// 备用字段8
        /// </summary>
        public String Value8
        {
            get
            {
                return _value8;
            }
            set
            {
                _value8 = value;
            }
        }

        private String _value9 = string.Empty;
        /// <summary>
        /// 备用字段9
        /// </summary>
        public String Value9
        {
            get
            {
                return _value9;
            }
            set
            {
                _value9 = value;
            }
        }

        private String _value10 = string.Empty;
        /// <summary>
        /// 备用字段10
        /// </summary>
        public String Value10
        {
            get
            {
                return _value10;
            }
            set
            {
                _value10 = value;
            }
        }
    }
}
